import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './plugins/element.js'
import './assets/css/global.css'
// vue2 需要导入
// import 'element-ui/lib/theme-chalk/index.css'
import './assets/font/iconfont.css'

import axios from 'axios'
// 配置请求的根路径
axios.defaults.baseURL = 'http://127.0.0.1:8888/api/private/v1/'
// 给原型属性赋值,这样就可以在任意组件上面访问$http属性了(类似于给全局对象扩展属性)
Vue.prototype.$http = axios

Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
